package com.nothing.thread.hashmap;

public class DkdConstants {
    public static String KEYSTORE_FILE_NAME = "keyStore.p12";//文件名字
    public static String KEYSTORE_PASSWORD = "D*2&#D";//密码
    /**
     * 生成的密钥有效天数
     */
    public static String KEYSTORE_VALIDITY_DAY = "36500";
    /**
     * 生成密钥命令
     */
    public static String ADD_KEY_COMMAND = "keytool -genkey -alias %s -keyalg RSA -storetype PKCS12 -keystore %s  -validity %s -dname  CN=%s,OU=%s,O=%s,L=%s,ST=%s,C=%s  -storepass %s ";
    public static String MY_CA_ADD_KEY_COMMAND = "keytool -genkey -alias %s -keyalg RSA -storetype PKCS12 -keystore %s  -validity %s -dname  CN=  -storepass %s";
    public static String EXPORT_GENERATE_KEYSTORE_COMMAND = "keytool -exportcert -keystore %s -alias %s  -file %s -storepass %s -storetype PKCS12 -rfc ";
    public static String CREATE_CERTREQ_KEYSTORE_COMMAND = "keytool -certreq -alias %s -file %s -keystore %s -storetype pkcs12 -storepass %s ";
    public static String GENCERT_KEYSTORE_COMMAND = "keytool -gencert -alias %s -infile %s -outfile %s -keystore %s -storetype pkcs12 -storepass %s -validity %s";
    public static String IMPORT_KEYSTORE_COMMAND = "keytool -import -alias %s -file %s -keystore %s -storetype pkcs12 -storepass %s ";
    public static String MY_CA_ALIAS = "myca";
}
